<template>
	<view :class="vi_pageSize">
		<vi-notify :top="topfix" ref="vi_notify"></vi-notify>
		<module-loading ref="vi_loading" :loading="vi_loading" :loadingMask="vi_loadingMask"></module-loading>
		<vi-headbar goback>
			<view slot="right">
				响应式
				<text class="response">开启</text>
				<text class="noresponse color-warning">关闭</text>
			</view>
			{{vi_pageTitle}}
		</vi-headbar>
		<view class="docTable">
			<view class="th">
				<view>属性名</view>
				<view>类型</view>
				<view>默认值</view>
				<view>描述</view>
			</view>
			<view class="tr">
				<view>type</view>
				<view>String</view>
				<view>primary</view>
				<view>主题色，影响按钮及搜索框</view>
			</view>
			<view class="tr">
				<view>color</view>
				<view>String</view>
				<view>无</view>
				<view>自定义主题色，影响按钮及搜索框</view>
			</view>
			<view class="tr">
				<view>textColor</view>
				<view>String</view>
				<view>无</view>
				<view>文字固定色，影响提交按钮，上下交换按钮</view>
			</view>
			<view class="tr">
				<view>height</view>
				<view>String</view>
				<view>15em</view>
				<view>单个内容框高度</view>
			</view>
			<view class="tr">
				<view>radius</view>
				<view>String</view>
				<view>circle</view>
				<view>圆角，影响内容框、搜索框</view>
			</view>
			<view class="tr">
				<view>dataList</view>
				<view>Array</view>
				<view>无</view>
				<view>选项数据集，使用keys指定名称与值的键名。属性checked=true可指定选项选中。</view>
			</view>
			<view class="tr">
				<view>value</view>
				<view>Array</view>
				<view>无</view>
				<view>初始选中值，优先级大于数据集设置checked。如有数据则覆盖数据集设置</view>
			</view>
			<view class="tr">
				<view>useSearch</view>
				<view>Boolean</view>
				<view>false</view>
				<view>开启搜索框</view>
			</view>
			<view class="tr">
				<view>useSubmit</view>
				<view>Boolean</view>
				<view>true</view>
				<view>开启提交按钮</view>
			</view>
			<view class="tr">
				<view>submitRadius</view>
				<view>String</view>
				<view>circle</view>
				<view>提交按钮圆角</view>
			</view>
			<view class="tr">
				<view>submitSize</view>
				<view>String</view>
				<view>md</view>
				<view>提交按钮预定尺寸</view>
			</view>
			<view class="tr">
				<view>submitPlain</view>
				<view>Boolean</view>
				<view>false</view>
				<view>提交按钮镂空</view>
			</view>
			<view class="tr">
				<view>submitWidth</view>
				<view>String</view>
				<view>100%</view>
				<view>提交按钮宽度</view>
			</view>
			<view class="tr">
				<view>submitHeight</view>
				<view>Number, String</view>
				<view>无</view>
				<view>提交按钮高度</view>
			</view>
			<view class="tr">
				<view>resFormat</view>
				<view>String</view>
				<view>无</view>
				<view>返回数据格式，value、option(返回选项对象，携带name、value属性)。为空等同value</view>
			</view>
			<view class="tr">
				<view>disabled</view>
				<view>Boolean</view>
				<view>false</view>
				<view>禁用</view>
			</view>
			<view class="tr">
				<view>readOnly</view>
				<view>Boolean</view>
				<view>false</view>
				<view>只读</view>
			</view>
			<view class="tr">
				<view>searchSet</view>
				<view>Object</view>
				<view>无</view>
				<view>搜索条设置参数，同searchbar组件</view>
			</view>
			<view class="tr extra">
				<view class="body">
					<view>keys</view>
					<view>Object</view>
					<view></view>
					<view>数据键名设置</view>
				</view>
				<view class="appendix">
					<view>name：name 标题名称</view>
					<view>value：value 真实值</view>
				</view>
			</view>
			<view class="tr extra">
				<view class="body">
					<view>icon</view>
					<view>Object</view>
					<view></view>
					<view>iconfont图标数据覆盖</view>
				</view>
				<view class="appendix">
					格式：{key:"图标名"}
					<view>up：icon-arr-double-up 上按钮</view>
					<view>down：icon-arr-double-down 下按钮</view>
				</view>
			</view>
			<view class="tr extra">
				<view class="body">
					<view>text</view>
					<view>Object</view>
					<view></view>
					<view>内部文字数据覆盖</view>
				</view>
				<view class="appendix">
					格式：{key:"文字"}
					<view>selectAll：全选　全选按钮</view>
					<view>clearAll：清空　清空按钮</view>
					<view>reset：重置　重置</view>
					<view>confirm：确定　确定按钮</view>
				</view>
			</view>
			<view class="tr">
				<view>@submit</view>
				<view>事件</view>
				<view></view>
				<view>点击提交按钮，根据resFormat提交返回结果对象，包含select已选(下部)，unSelect未选(上部)</view>
			</view>
			<view class="tr extra">
				<view class="body">
					<view>submit</view>
					<view>function</view>
					<view></view>
					<view>手动触发提交方法，可传入对象参数</view>
				</view>
				<view class="appendix">
					对象参数包含属性：
					<view>type：选取范围　select已选、unSelect未选、all全部</view>
					<view>resFormat：返回格式　value值、option带name、value的选项、count计数、key指定键名</view>
					<view>key：指定键名　resFormat为key时有效</view>
				</view>
			</view>
		</view>
		
		<view class="p-sm">
			<vi-collapse title="搜索条参数 searchSet" headClass="bgColor-contrast" boxClass="b-default">
				<view class="docSubTable">
					<view class="th">
						<view>属性名</view>
						<view>类型</view>
						<view>描述</view>
					</view>
					<view class="tr">
						<view>open</view>
						<view>Boolean</view>
						<view>开启搜索条，默认值：false</view>
					</view>
					<view class="tr">
						<view>height</view>
						<view>Number</view>
						<view>搜索条高度，固定单位em，默认值：2</view>
					</view>
					<view class="tr">
						<view>bgColor</view>
						<view>String</view>
						<view>输入框背景色，默认值：#eee</view>
					</view>
					<view class="tr">
						<view>plain</view>
						<view>Boolean</view>
						<view>输入框镂空，默认值：false</view>
					</view>
					<view class="tr">
						<view>placeholder</view>
						<view>String</view>
						<view>输入框空值提示，默认值：请输入关键词</view>
					</view>
					<view class="tr extra">
						<view class="body">
							<view>buttonStyle</view>
							<view>String</view>
							<view>搜索按钮样式，默认值：iconRight</view>
						</view>
						<view class="appendix">
							<view>iconLeft内部左侧图标，iconRight内部右侧图标</view>
							<view>outsideLeft外部左侧按钮，outsideRight外部右侧按钮</view>
							<view>insideLeft内部左侧衔接按钮，insideRight内部右侧衔接按钮</view>
							<view>active动态搜索(注意性能问题)</view>
						</view>
					</view>
				</view>
			</vi-collapse>
		</view>
			
		<view class="p-sm">
			<view class="py-sm">
				基本使用：{{`&lt;vi-transfer :dataList="数据集">&lt;/vi-transfer>`}}
			</view>
			<view class="py-sm">
				<vi-transfer :dataList="dataList"></vi-transfer>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[
					{name:"选项1",value:1},
					{name:"选项2",value:2},
					{name:"选项3",value:3},
					{name:"选项4",value:4},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>

</style>
